package com.jingdong.service;

import com.jingdong.dao.UserDao;
import com.jingdong.dao.impl.UserDaoImpl;
import com.jingdong.enity.User;

import java.util.List;

public interface UserService {
    //这个是每一个方法都有的内容,所以可以抽取出来,并且因为只在本类中使用,所以用private修饰,更加安全
    List<User> findAll() throws Exception;
    boolean login(User user) throws Exception;
    boolean register(User user) throws Exception;


    }
